
$ExecuteBatchClass = New-PSClass ExecuteBatch -inherit $PSSqlCommandClass {
	
	Constructor {
		Base $Args[0] $Args[1]
	}

   method Execute {
	  $Batch = $Args[0]
		$CommandTimeout = $Args[1]
		if ( $CommandTimeout )
		{
			Log-Message -Level Verbose "Set CommantTimeout $CommandTimeout"
		  $this.Command.CommandTimeout = $CommandTimeout
		}
		else
		{
			Log-Message -Level Verbose "resetSet CommantTimeout"
			$this.Command.ResetCommandTimeout()
		}
		
		$this.ExecuteNonQuery($Batch)
	}
}
